package me.minecraft.plugin.itemsave.command;

import me.minecraft.plugin.itemsave.manager.ItemManager;
import org.bukkit.command.CommandSender;

import java.util.Set;

/**
 * @author langle__
 * @version 1.0
 */
public class ListCommand extends SubCommand {

    @Override
    public void onCommand(CommandSender sender, String[] args) {
        sender.sendMessage("[§6ItemSave§f] Items:");
        Set<String> set = ItemManager.INSTANCE.keySet();
        String string = String.join(", ", set);
        sender.sendMessage(string);
    }

}
